﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ThongTinChiTiet.ascx.cs" Inherits="iShopping.Guest.UserControl.ThongTinChiTiet" %>
<%@ Import Namespace="iShoppingBUS" %>
<link href="../../css/ui-lightness/jquery-ui-1.8.11.custom.css" rel="stylesheet"
    type="text/css" />
<script src="../../js/jquery-1.5.1.min.js" type="text/javascript"></script>
<script src="../../js/jquery-ui-1.8.11.custom.min.js" type="text/javascript"></script>
<script src="../jwplayer/querystring.js" type="text/javascript"></script>

   <script type ="text/javascript">
       $(function () {
           $("#tabs").tabs();
       });
	</script>
<div class="demo">
<div id="tabs">
	<ul>
		<li><a href="#tabs-1" style="font-family: 'Times New Roman', Times, serif">Chi Tiết Sản Phẩm</a></li>
		<li><a href="#tabs-2" style="font-family: 'Times New Roman', Times, serif">Thông Tin Vận Chuyển</a></li>
		<li><a href="#tabs-3" style="font-family: 'Times New Roman', Times, serif">Video Clip</a></li>
		<li><a href="#tabs-4" style="font-family: 'Times New Roman', Times, serif">Tham khảo</a></li>
	</ul>
	<div id="tabs-1" align="left" style="height: 40px">
        <asp:FormView ID="FormView1" runat="server" CaptionAlign="Left" 
            HorizontalAlign="Left">
            <ItemTemplate>
                <table class="ui-accordion">
                    <tr>
                        <td>
                            Chức năng:</td>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("MoTaSanPham") %>'></asp:Label>
                         <%-- <label id ="lblCT" title = ""> <%= chiTiet%></label>   --%>                     
        
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:FormView>
	</div>
	<div id="tabs-2">
        <asp:Label ID="Label3" runat="server" Text="Label">Sản phẩm được miễn phí vận chuyển</asp:Label>
	</div>
<%
   
    String maSamPham = Request.QueryString["id"].ToString();

    string link = SanPhamBUS.GetVideo(maSamPham);
    if(!string.IsNullOrEmpty(link))
    {
%>
	<div id="tabs-3">
	<div>
	<input id="Hidden1" type="hidden" value= "<%=link%>"/>	
	</div>
	
	<div id="fragment-clip" align="center">
     <script src="../jwplayer/swfobject.js" type="text/javascript"></script>          
     <div class="item-video">                    
         <span id="jwplayer" class="normal-video">Bạn cần cài
              <a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> để xem 
                    được Clip này</span>
                <script type="text/javascript">
                        var jwplayer = new SWFObject('../jwplayer/player.swf', "playlist", "480", "340", "7");
                         jwplayer.addParam("allowfullscreen", "true");
                            jwplayer.addParam("wmode", "opaque");
                             var file = document.getElementById("Hidden1").value;

                             jwplayer.addVariable("file", file);
                             jwplayer.addVariable("displayheight", "320");
                             jwplayer.addVariable("width", "480");
                             jwplayer.addVariable("height", "340");
                             jwplayer.addVariable("backcolor", "0x000000");
                             jwplayer.addVariable("frontcolor", "0xCCCCCC");
                             jwplayer.addVariable("lightcolor", "0x557722");
                             jwplayer.addVariable("shuffle", "false");
                             jwplayer.addVariable("repeat", "list");
                             jwplayer.addVariable("allowscriptaccess", "always");                                           
                             jwplayer.write('jwplayer');		
                      </script>
     </div>        
     </div>
	 </div>
 <% }%>
    <div id="tabs-4">  Chưa Có</div>
</div>
</div>
<!-- End demo -->